<div class="layout" ng-show="showPic || showAttach">
    <header class="titleBar">
        <a href="javascript:history.back()" class="back"><img src="images/back.png" alt=""></a>
        <div class="title" ng-show="showPic">
            添加图片
        </div>
        <div class="title" ng-show="showAttach">
            添加附件
        </div>
        <a href="" class="skip" ng-click="confirmPic()">确定</a>
    </header>
    <div class="blankZone">
        <input type="file" name="hideFile" id="hideFile" class="hidden" value="">
        <ul class="addPicList">
            <li>
                <a href="" ng-click="upload()"><img src="images/addpic.png" alt=""></a>

            </li>
            <li ng-repeat="item in selectedFile | filter:myFilter(showPic)">
                <a href="" ng-click="delete(item)" class="delete"></a>
                <img src="{{item}}" alt="" ng-show="showPic">
                <a href="" class="attach" ng-show="showAttach"><span>{{item.substring(item.lastIndexOf('/')+1)}}</span></a>
            </li>
        </ul>
        <div class="clear"></div>
    </div>
</div>

<div class="layout hasFixedFooter bgGrey"  ng-show="!showPic && !showAttach">
    <!---->
    <header class="titleBar">
        <a href="#/" class="back"><img src="images/back.png" alt=""></a>
        <div class="title">
            申请咨询
        </div>
    </header>
    <!--div class="enquirePurpose">
        <span>咨询目的</span>
        <a href="" ng-click="i.checked=!i.checked" class="btnBlue {{i.checked?'checked':''}}" ng-repeat="i in purposes">{{i.name}}</a>
    </div-->
    <div class="patientZone">
        <p class="patientZoneTitle">
            <span>患者信息</span>
            <br>
            <b>*选择已有患者，专家可查看示其电子病历</b>

            <select ng-options="option.patient_name for option in patients track by option.patient_id"
                    ng-model="selectedOption">
                <option value="">选择患者</option>
            </select>
        </p>
        <p class="patientField">
            <span>患者姓名</span>
            <input type="text" ng-model="selectedOption.patient_name">
        </p>
        <p class="patientField">
            <span>患者年龄</span>
            <input type="text" ng-model="selectedOption.patient_age">
        </p>
        <p class="patientField">
            <span>患者性别</span>
            <input type="text" ng-model="selectedOption.patient_sex">
        </p>
        <p class="patientField">
            <span>诊断</span>
            <input type="text" ng-model="selectedOption.patient_diagnosis">
        </p>
        <p class="patientField">
            <span>基本病情</span>
        </p>
        <p>
            <textarea name="" id="" cols="30" rows="10" ng-model="selectedOption.patient_illness">

            </textarea>
        </p>
        <p class="hasAttach">
            <span><img src="images/enquire-attach.png" alt=""> &nbsp;附件</span>
            <a href="" class="floatRight" ng-click="goAttach()"><span class="ball redball">{{attach}}</span><img src="images/setting-more.png" alt=""></a>
        </p>
        <p class="hasAttach">
            <span><img src="images/enquire-image.png" alt=""> &nbsp;照片</span>
            <a href="" class="floatRight" ng-click="goPic()"><span class="ball redball">{{pic}}</span><img src="images/setting-more.png" alt=""></a>
        </p>
<!--        <p>
            <a href="#"><img src="images/expert-add.png" alt="">&nbsp;添加专家</a>
        </p>-->
    </div>
    <div class="expertFooterIntro">
        <h2>发起医生</h2>
        <div class="smallExpertIntro">
            <img src="{{member.doctor_headphoto}}" alt="" class="avatar">
            <div class="text">
                <span class="name">{{member.doctor_name}}</span>
                <br>
                <span>{{member.doctor_hospital}}</span>
                <span class="department">{{member.doctor_department}}</span>

            </div>
        </div>
        <h3>咨询医生 <a href="" ng-click="goToDoctorList()">选择医生 <img src="images/arrow.png" alt=""></a></h3>
        <div class="smallExpertIntro" ng-repeat="doctor in doctors">
            <img src="{{doctor.doctor_headphoto}}" alt="" class="avatar">
            <div class="text">
                <span class="name">{{doctor.doctor_name}}</span>
                <br>
                <span>{{doctor.doctor_hospital}}</span>
                <span class="department">{{doctor.doctor_department}}</span>

            </div>
        </div>
        <div class="clear"></div>
    </div>
    <footer class="enquire">
        <a href="" class="btnFull" ng-click="go()">
            发出申请
            <br>
            <span>*专家接受申请后，可以付款进行会话查询</span>
        </a>
    </footer>

    <div class="mask full" ng-hide="hidden"></div>
    <div class="maskTip" ng-hide="hidden">
        <p><img src="images/right.png" alt=""></p>
        <p>
        已成功通知医生<br>
        请等待医生接受申请...
        </p>
        <div class="confirm"><a href="" ng-click="confirm()">确定</a></div>
    </div>
</div>